package pl.edu.pw.stud.ltrzaska.policy.entity;

import java.util.ArrayList;

import org.apache.commons.vfs.FileObject;
import org.apache.commons.vfs.FileSystemException;

import pl.edu.pw.stud.ltrzaska.policy.entity.iface.IFilesystemParent;


public class Group extends FilesystemObject implements IFilesystemParent {
	private static final long serialVersionUID = -875672470494976028L;
	private ArrayList<FilesystemObject> children;

	public Group() {
		super();
	}

	public ArrayList<FilesystemObject> getChildren() {
		return children;
	}
	
	public void setChildren(ArrayList<FilesystemObject> children) {
		this.children = children;
	}
	
	public boolean hasChildren() {
		return (this.children != null && this.children.size() > 0);
	}
	
	/**
	 * Znajduje odpowiedniki tego obiektu polityki w wirtualnym systemie plikow.
	 * 
	 * @param parentVirtualFsObj
	 * @return
	 * @throws FileSystemException
	 */
	public ArrayList<FileObject> findVirtualFsEquivalents(FileObject parentVirtualFsObj) throws FileSystemException {
		return null;
	}
}
